eb42b850531d6e0e37b85865cf869e38dade31e7,simElectricity/src/main/java/simElectricity/Common/Blocks/TileEntity/TileTower.java,TileTower,onGridNeighborUpdated,#,59
Before Change
if (neighbors.size() == 0)
neighborsInfo = new int[] { 0, -1, 0, 0, -1, 0 };
else if (neighbors.size() == 1){
ISEGridObject neighbor1 = neighbors.get(0);
neighborsInfo = new int[] {neighbor1.getXCoord(),neighbor1.getYCoord(),neighbor1.getZCoord(),
0, -1, 0 };
}else if (neighbors.size() == 2){
ISEGridObject neighbor1 = neighbors.get(0);
After Change
int i=0;
f:for (ISESimulatable neighbor : gridObj.getNeighborList()){
if (neighbor instanceof ISEGridObject){
if (i==0){
ISEGridObject neighbor1 = (ISEGridObject)neighbor;
neighborsInfo[0] = neighbor1.getXCoord();
neighborsInfo[1] = neighbor1.getYCoord();
neighborsInfo[2] = neighbor1.getZCoord();
}
if (i==1){